#pragma once
#ifndef __CProgram_H
#define __CProgram_H

#include "CExercise.h"
#include "CDate.h"

typedef enum resType2 {DEVICE_OK,DEVICE_EXIST,DEVICE_NULL} resAddDevice;


class CProgram
{
public:
	//--------------------C'tors,D'tors-----------------------
	CProgram  (CDate Date);
	CProgram  (const CProgram &other);
	~CProgram (void);
	//--------------------------------------------------------
	
	resAddDevice addExercise    (CExercise *E,CDate D);
	void removeExercise			(char *ExerciseName,CDate D);
	void freeAll				();
	//--------------------------------------------------------

	//----------------------Setters---------------------------
	void  setProgramDate (const CDate &D);
	//--------------------------------------------------------

	//----------------------Getters---------------------------
	CDate getProgramDate () const;
	int getExerciseCount () const;
	const CExercise * getExercise(int ind) const; 
	//--------------------------------------------------------
private:
	CDate ProgramDate;
	CExercise **Exercises;
	int iExerciseCount;
	
};

#endif
